{layout name="./base/base_back"}
		<link rel="stylesheet" type="text/css" href="/front/css/mytravelcoin.css"/>
		<script src="/front/js/jquery.js"></script>
		<script src="/front/js/index.js"></script>
		<!--我的旅行币开始-->
		<div id="mytravel-coin-box">
			<div id="mytravel-coin">
				{include file="./navleft"}
				<div class="mytravel-coin-right">
					<div class="mytravel-coin-tit">旅行币充值</div>
					<div class="mytravel-coin-add">
						<form action="/intergrate/saveintergrateadd" method="post">
							<div class="form-group-input">
								<label for="" class="form-label">账号</label>
								<input type="text" id="mobile" placeholder="18858484848" value="{$mobile}">
							</div>
							<div class="form-group-input">
								<label for="" class="form-label">旅行币数额</label>
								<input type="text" id="intergrate" name="intergrate" placeholder="请填写所要充值的旅行币数额">
							</div>
							<div class="form-group-input">
								<label for="" class="form-label">充值金额</label>
								<input type="text" id="intergrateadd" name="cash" placeholder="" disabled="">
							</div>
							
							<div class="form-group-input">
								<label for="" class="form-label">支付方式</label>
								<label for="weixin" class="labelsel">微信</label>
								<input type="radio" id="weixin" name="paychose" value="WxPay" checked>
								<!-- <label for="zhifubao" class="labelsel">支付宝</label>
								<input type="radio" id="zhifubao" name="paychose" value="zhifubao">
								<label for="yinlian" class="labelsel">银联</label>
								<input type="radio" id="yinlian" name="paychose" value="yinlian"> -->
							</div>
							<!-- 支付方式选择开始 -->
							<script>
								$(function(){
								    $("label.labelsel:first").css({backgroundColor:"#1E90FF",color:"#FFFFFF"});
								    $(".mytravel-coin-right .mytravel-coin-add .form-group-input .labelsel").click(function(){
								    	$(this).css({backgroundColor:"#1E90FF",color:"#FFFFFF"}).siblings('.labelsel').css({backgroundColor:"",color:""});
								    })
								    
								})
							</script>
							<!-- 支付方式选择结束 -->
							<div class="form-group-input form-button">
								<button type="submit" class="btn btn-primary" disabled id="recharge">充值</button>
							</div>
						</form>
					</div>
					
					<dl>
						<dt>温馨提示</dt>
						<dd>（1）房车单日旅行币标准值为500(500来自于后台)<br/>（此标准值根据地理位置、星级标准、营地环境、房车状况、市场情况等多方面因素综合评定）。</dd>
						<dd>（2）为公平起见，国家法定假日，分享房车享受旅行币标准值的1.5倍系数，周六、日分享房车，享受旅行币标准值的1.25倍系数。</dd>
						<dd>（3）你的旅行币总额=标准值*系数*天数。</dd>
						<dd>（4）当前人民币与旅行币的兑换比值为1：2。</dd>
					</dl>
				</div>
			</div>
		</div>
		<!--我的旅行币结束-->

<script type="text/javascript">
	$("#intergrate").blur(function(){
        if ($('#mobile').val()=='' && $('#intergrate').val()=='') {
          $('#recharge').attr('disabled','disabled');
        }else{
          $('#recharge').removeAttr('disabled');
        }

        $.post("/intergrate/saveintergrate",
        { 
          intergrate:$('#intergrate').val()
        },
        function(data,status,dataType){
        	$("#intergrateadd").val(data);
        });

      });
</script>